package com.yidu.utils;

import com.yidu.entity.SCommodity;
import lombok.Data;
import lombok.ToString;

/**
 * <p>@Description: No Description</p>
 * <p>@Author Wanghong</p>
 * <p>@Date: 2021/7/30</p>
 * <p>@Time: 15:36</p>
 * <p>@version 1.0</p>
 */
@Data
@ToString
public class BaseBean {
    private Integer  page =1;
    private Integer limit =10;
    private Integer offset;
    private Double max;
    private Double min;
    private SCommodity commodity;

    public Integer getOffset() {
        return (page-1)*limit;
    }
}
